import React, { useRef } from 'react'
import Children from './Children'

const StudyForwardRef = () => {
  const childRef = useRef(null)
  console.log(childRef.current?.focus)
  return (
    <div>
      <h1>学习forwardRef和useImperativeHandle 进阶hooks</h1>
      <Children ref={childRef} />
    </div>
  )
}

export default StudyForwardRef
